package com.km.config;

import org.springframework.web.SpringServletContainerInitializer;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

/**
 * Indirectly invoked by {@link SpringServletContainerInitializer} in a Servlet 3+ container
 * Created by zhezhiyong@163.com on 2017/8/30.
 */
public class ExampleInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {

    @Override
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }

    @Override
    protected Class<?>[] getRootConfigClasses() {
        return null;
    }

    @Override
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{TracingConfiguration.class};
    }
}